import React, { useContext } from 'react'
import { AppContext } from '../../App'

export default function Detail() {
  
  const { username, registrationTime, lastLoginTime, loginStatus } = useContext(AppContext)

  return (
    <tr>
      <td>{username}</td>
      <td>{registrationTime}</td>
      <td>{lastLoginTime}</td>
      <td>{loginStatus ? 'Y' : 'N'}</td>
    </tr>
  )
}
